-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Port of scala infer package to clojure #13595
Port of scala infer package to clojure #13595
Conversation
@kedarbellare awesome! Thanks for bringing this to life. |
is there a recommended way to unit test this or should i just write integration tests? |
@gigasquid this PR is mostly ready for review. PTAL when you get a chance. i'm not sure how to write unit tests for this though. |
Wonderful 💯 - I'll take a look at it in the next few days. Thanks. |
dbe39f6
to
493561d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for tackling this. I gave it a test run and it works great. It is going to be a big win for clojure users.
The main thing that we need to figure out is how to incorporate some unit tests so we can make sure stuff doesn't break on PRs. I made a suggestion to adapt the example tests that you have. I don't think the hit of downloading some small models will be too much of an issue and the inference run time is pretty small.
I'm open to other suggestions as well.
Great job and ping me when the feedback is addressed for another pass.
contrib/clojure-package/examples/infer/imageclassifier/src/infer/imageclassifier_example.clj
Show resolved
Hide resolved
contrib/clojure-package/examples/infer/imageclassifier/src/infer/imageclassifier_example.clj
Show resolved
Hide resolved
contrib/clojure-package/examples/infer/predictor/src/infer/predictor_example.clj
Outdated
Show resolved
Hide resolved
contrib/clojure-package/examples/infer/predictor/src/infer/predictor_example.clj
Outdated
Show resolved
Hide resolved
contrib/clojure-package/examples/infer/predictor/test/infer/predictor_example_test.clj
Show resolved
Hide resolved
@@ -0,0 +1,210 @@ | |||
;; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done!
493561d
to
a15a098
Compare
@gigasquid : almost all the feedback is addressed. adding specs is remaining. PTAL |
Thanks for addressing the feedback so quickly! |
* Port of scala infer package to clojure * Add inference examples * Fix project.clj * Update code for integration tests * Address comments and add unit tests * Add specs and simplify interface * Minor nit * Update README
* Port of scala infer package to clojure * Add inference examples * Fix project.clj * Update code for integration tests * Address comments and add unit tests * Add specs and simplify interface * Minor nit * Update README
Description
Predictor
,Classifier
,ImageClassifier
andObjectDetector
APIs.Checklist
Essentials
Please feel free to remove inapplicable items for your PR.
Changes
infer
package, tests, (and when applicable, API doc)Reviewers
@gigasquid